<gn-dialog title="角色信息">
  <form gnForm url="/MANAGE-SERVICE/roles" [formGroup]="form.formGroup">
    <gn-form-field label="ID" field="id" [visible]="false"></gn-form-field>
    <gn-form-field label="名称" field="name" [formGroup]="form.formGroup"
                   [validators]="[{message: '请输入名称', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入名称" required="true" formControlName="name">
    </gn-form-field>
  </form>
</gn-dialog>

